package com.leng.common.constant;

/**
 * @author xialin.yan
 * @version V1.0.1
 * @projectName shop
 * @packageName cn.dental360.common.cache
 * @description  服务层异常枚举
 * 状态编码区分数字区段，方便同一类信息几种放置
 * @email xiaolin.yan@dental360.cn
 * @date 2019/10/24 13:38
 **/
public enum ServiceExceptionEnum {
    BASEDATAHANDLER_WHERE_PLACEHOLDER(994,"where与defaultCode配合使用，指定where条件时请使用%s，对应的条件值从构造方法defaultCode传入"),
    REPEAT_DATA(995,"数据不允许重复")
    ;


    private Integer code;

    private String name;

    ServiceExceptionEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    private void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    private void setName(String name) {
        this.name = name;
    }
}
